package com.wnhz.work.jy.activity;

import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.widget.ListView;
import android.widget.TextView;

import com.wnhz.work.jy.BaseActivity;
import com.wnhz.work.jy.R;
import com.wnhz.work.jy.adapter.Home3_add1Adapter;
import com.wnhz.work.jy.bean.Home3_add1Bean;

import java.util.ArrayList;
import java.util.List;

/**
 * -----金融咨询
 */
public class FinancialActivity extends BaseActivity implements View.OnClickListener {
    private TextView title;
    private ListView lv_financial;

    private Home3_add1Adapter mAdapter;
    private List<Home3_add1Bean> home3List1 = new ArrayList<>();


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_financial);

        initView();
    }


    private void initView() {
        title = (TextView) findViewById(R.id.view_main_middle_title);
        title.setText("金融咨询");
        findViewById(R.id.btn_main_left).setOnClickListener(this);

        lv_financial = (ListView) findViewById(R.id.lv_financial);

        mAdapter = new Home3_add1Adapter(FinancialActivity.this, home3List1);
        lv_financial.setAdapter(mAdapter);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.btn_main_left:
                finish();
                break;

            default:
                break;
        }
    }
}
